package com.Design.Visitor;


/**
 * @Author Lc
 * @Date 2023/9/30
 * @PackageName: com.Design.Visitor
 * @ClassName: Success
 * @Description:
 */

public class Success extends Action {
    @Override
    public void getManConclusion(Man man) {
        System.out.println(man.getClass().getSimpleName() + " "
                + this.getClass().getSimpleName()
                + "时，背后大多有个伟大的女人");
    }

    @Override
    public void getWoManConclusion(WoMan woMan) {
        System.out.println(woMan.getClass().getSimpleName() + " "
                + this.getClass().getSimpleName()
                + "时，背后大多有一个不成功的男人");
    }
}
